package com.hzf.order.dao.model;

import java.io.Serializable;

public class OrderNotity implements Serializable {
    private Integer id;

    /**
     * 当前用户
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 订单ID
     *
     * @mbg.generated
     */
    private Integer orderUserInfoId;

    /**
     * 通知手机号
     *
     * @mbg.generated
     */
    private Long peisongPhone;

    /**
     * 通知状态
     *
     * @mbg.generated
     */
    private Integer notityState;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getOrderUserInfoId() {
        return orderUserInfoId;
    }

    public void setOrderUserInfoId(Integer orderUserInfoId) {
        this.orderUserInfoId = orderUserInfoId;
    }

    public Long getPeisongPhone() {
        return peisongPhone;
    }

    public void setPeisongPhone(Long peisongPhone) {
        this.peisongPhone = peisongPhone;
    }

    public Integer getNotityState() {
        return notityState;
    }

    public void setNotityState(Integer notityState) {
        this.notityState = notityState;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", orderUserInfoId=").append(orderUserInfoId);
        sb.append(", peisongPhone=").append(peisongPhone);
        sb.append(", notityState=").append(notityState);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderNotity other = (OrderNotity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getOrderUserInfoId() == null ? other.getOrderUserInfoId() == null : this.getOrderUserInfoId().equals(other.getOrderUserInfoId()))
            && (this.getPeisongPhone() == null ? other.getPeisongPhone() == null : this.getPeisongPhone().equals(other.getPeisongPhone()))
            && (this.getNotityState() == null ? other.getNotityState() == null : this.getNotityState().equals(other.getNotityState()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getOrderUserInfoId() == null) ? 0 : getOrderUserInfoId().hashCode());
        result = prime * result + ((getPeisongPhone() == null) ? 0 : getPeisongPhone().hashCode());
        result = prime * result + ((getNotityState() == null) ? 0 : getNotityState().hashCode());
        return result;
    }
}